lib/repo: Enforce min-free-space-* size check for regfiles in deltas
authorUmang Jain <umang@endlessm.com>
Tue, 19 Jun 2018 20:52:12 +0000 (02:22 +0530)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 22 Jun 2018 21:01:56 +0000 (21:01 +0000)
commit095376efa2ecaf538246cf2e3979a9606afdea5f
tree0633c76c5c268b20fada451f6d8554cc2b63f4d3
parent1174d9f5ba537562c67084caf0214544fbb14ffc
lib/repo: Enforce min-free-space-* size check for regfiles in deltas

During the pull, there is an explicit check for free space on disk
vs. the size of uncompressed delta; But while writing the new content
objects that are generated, they have to honor min-free-space-* checks
too. We enforce this check in _bare_content_commit as that is where
we can know the final size of the new content object.

Closes: #1614
Approved by: jlebon
src/libostree/ostree-repo-commit.c